<%@ page contentType="text/html;charset=GB2312"%>
<%@ page language="java" import="java.util.*,control.database.*,java.sql.*"%>

<%
String DspID="1";

String Operation1=request.getParameter("operation1");
String Operation2=request.getParameter("operation2");
String Operation3=request.getParameter("operation3");
String Operation4=request.getParameter("operation4");
String Operation5=request.getParameter("operation5");
System.out.println(DspID+"  "+Operation1+"  "+Operation2+"");
String sql="";
DataBase db=new DataBase();

if(!(DspID!=null&&Operation1!=null&&Operation2!=null&&Operation3!=null&&Operation4!=null&&Operation5!=null)){

response.sendRedirect("error.jsp");
}
DspID=request.getParameter("DspID");
sql="update CQ_Cmn_DspDisplay set operation1='"+Operation1+"',operation2='"+Operation2+"',operation3='"+Operation3+"',operation4='"+Operation4+"',operation5='"+Operation5+"' where DspID="+DspID;

db.executeUpdate(sql);

db.closeStmt();
db.closeConn();
System.out.println(sql);
response.sendRedirect("success.jsp");
%>